#ifndef __TIMESTAMP_H
#define __TIMESTAMP_H
#include <stdint.h>

#ifdef __cplusplus
 extern "C" {
#endif

// for timestamp print
#define NUMBER64_DIV_NUM        1000000000
#define NUBER64_H(n)        ((n)/NUMBER64_DIV_NUM)  // convert has loss,but timestamp 2100.09.20 is 4125052800000,not over 1000000000*999999999
#define NUBER64_L(n)        ((n)%NUMBER64_DIV_NUM)

uint64_t getSystemTimestamp(void);
uint64_t getLocalTimestamp(void);
void systemTimestampAdd(void);
#ifdef __cplusplus
}
#endif
#endif

